package com.allinpay.merchantweb.service;

import com.allinpay.merchantweb.request.RequestMessage;
import com.allinpay.merchantweb.response.ResponseMessage;

public interface RestService {

	/**
	 * post方式提交提交数据
	 * @param url
	 * @param body
	 * @return
	 * @throws Exception
	 */
	public ResponseMessage doPost(String url,String body)throws Exception;
	
	
	/**
	 * 提交json格式数据
	 * @param url
	 * @param body
	 * @return
	 * @throws Exception
	 */
	public ResponseMessage doPostJson(String url,String body)throws Exception;
	
	
	/**
	 * get请求提交数据
	 * @param url
	 * @param body
	 * @return
	 * @throws Exception
	 */
	ResponseMessage doGets(String url, String body, String bizContent, String sessionid) throws Exception;
	
	/**
	 * get请求提交数据
	 * @param url
	 * @param body
	 * @return
	 * @throws Exception
	 */
	public ResponseMessage doGet(String url,String body,String bizContent,String sessionid)throws Exception;
	/**
	 * Post请求提交数据
	 * @param url
	 * @param body
	 * @return
	 * @throws Exception
	 */
	public ResponseMessage doPost(String url, String body,String bizContent) throws Exception;
	/**
	 * 会员发送get请求
	 * @param path
	 * @param body
	 * @return
	 * @throws Exception
	 */
	public ResponseMessage doUserPost(String path,RequestMessage reqMsg)throws Exception;

}
